projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d22f072
)
Enable the EMAC clock in at91_macb_hw_init().
author
Markus Hubig
<
[email protected]
>
Tue, 7 Aug 2012 15:43:22 +0000
(17:43 +0200)
committer
Albert ARIBAUD
<
[email protected]
>
Sat, 1 Sep 2012 12:58:15 +0000
(14:58 +0200)
Signed-off-by: Markus Hubig <
[email protected]
>
Cc: Andreas Bießmann <
[email protected]
>
Signed-off-by: Andreas Bießmann <
[email protected]
>
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index 62f76fa8e328441605d5e69a6ce10dcf2f5a4c6c..19ec615c723b062cc78c449fe7a6e4ce9b950acf 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@
-158,6
+158,10
@@
void at91_spi1_hw_init(unsigned long cs_mask)
#ifdef CONFIG_MACB
void at91_macb_hw_init(void)
{
+ /* Enable EMAC clock */
+ struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
+ writel(1 << ATMEL_ID_EMAC0, &pmc->pcer);
+
at91_set_a_periph(AT91_PIO_PORTA, 19, 0); /* ETXCK_EREFCK */
at91_set_a_periph(AT91_PIO_PORTA, 17, 0); /* ERXDV */
at91_set_a_periph(AT91_PIO_PORTA, 14, 0); /* ERX0 */